<script>
alert('<?=$message ?>');
window.location.href='/';
</script>